home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 135
/
Vol 135.iso
/
games
/
bunny_gr.swf
/
scripts
/
frame_66
/
DoAction.as
Wrap
Text File
|
2008-11-12
|
925b
|
33 lines
level_time = MAX_WAIT - (MAX_WAIT / MAX_LEVEL * level - "1") + MIN_WAIT;
k = "1";
while(eval("/:MAX_HOLES") >= k)
{
if(eval("/:hole" add k) == "1")
{
time_elapsed = getTimer() - eval("/hole" add k add ":start_time");
percentage = time_elapsed / eval("/:level_time");
if("1" >= percentage)
{
tellTarget("hole" add k)
{
set("/:start",eval("/:START" add current_drink));
gotoAndStop(int(eval("/:start") + eval("/:DRINK_LENGTH") * eval("/:percentage")));
}
}
else
{
set("/:drinks_active",eval("/:drinks_active") - "1");
set("/:hole" add k,"0");
tellTarget("hole" add k)
{
gotoAndStop(1);
if(current_drink == eval("/:LIFE_DRINK"))
{
set("/:life_active","0");
}
}
}
}
k += "1";
}